package com.yundingai.service;

import com.yundingai.domain.entity.AllMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yundingai.domain.entity.vo.AllMenuVo;
import com.yundingai.domain.vo.MenuVo;

import java.util.List;

/**
* @author liyuxiang
* @description 针对表【all_menu(菜单表：用于动态查询生成后台菜单与动态路由实现)】的数据库操作Service
* @createDate 2025-07-16 12:43:19
*/
public interface AllMenuService extends IService<AllMenu> {
    List<AllMenu> selectAllMenusByUsername(String username);

    void updateMenu(AllMenu allMenu);

    void insertMenu(AllMenuVo allMenuVo);

    List<MenuVo> selectAllMenusByUserRoleId(String roleId);

    List<MenuVo> selectAllMenus();

    List<MenuVo> selectMenusByCurrentUser();

    MenuVo selectMenuById(Integer menuId);

    void deleteMenu(Integer menuId);

    void insertChildMenu(AllMenuVo allMenuVo);

    List<MenuVo> selectMenusByUserId(Integer userId);
}
